<form id="<?php echo $uniqid;?>" method="post" style="padding: 8px;">
	<table border="0" width="100%" cellspacing="1" cellpadding="5" class="formtable">
		<tr bgcolor="#FFFFFF">
			<td  class="tlabel" >订单ID：</td>
			<td width="80%">{{ params.order_id }}</td>
		</tr>
		<tr bgcolor="#FFFFFF" v-if="params.goods">
			<td  class="tlabel" >商品名：</td>
			<td width="80%" >{{params.goods.title}}</td>
		</tr>
		<tr bgcolor="#FFFFFF">
			<td  class="tlabel" >评分：</td>
			<td width="80%"><input type="text" style="width:400px;" v-model="params.level"
								   class="forminput inputstyle textbox-text validatebox-text textbox-prompt easyui-validatebox"
								   placeholder="请输入名称.." required="true"></td>
		</tr>
		<tr bgcolor="#FFFFFF">
			<td  class="tlabel" >评论内容：</td>
			<td width="80%" style="padding-top: 8px"><textarea name="remark" style="width: 545px;height: 70px;" v-model="params.content"
									  class="textbox-text validatebox-text textbox-prompt easyui-validatebox"
									  placeholder="请输入备注.."></textarea></td>
		</tr>
		<tr bgcolor="#FFFFFF">
			<td  class="tlabel" >回复：</td>
			<td width="80%" style="padding-top: 8px"><textarea name="remark" style="width: 545px;height: 70px;" v-model="params.reply"
									  class="textbox-text validatebox-text textbox-prompt easyui-validatebox"
									  placeholder="请输入备注.."></textarea></td>
		</tr>
		<tr bgcolor="#FFFFFF">
			<td  class="tlabel" >显示状态：</td>
			<td width="80%">
				<label style="margin-right:20px;"><input type="radio" v-model="params.status" value="show">显示</label>
				<label><input type="radio" v-model="params.status" value="hidden">隐藏</label></td>
		</tr>
		<tr bgcolor="#FFFFFF">
			<td  class="tlabel" >图片：</td>
			<td width="80%">
				<div v-for="vo in params.images" style="flex:1" >
					<a :href="vo" target="_blank"><img :src="vo" style="max-width:100px;" /></a>
				</div>
			</td>
		</tr>
</table>
</form>

<script>
var goodscommentVm = new Vue({
	el: '#<?php echo $uniqid;?>',
	data: {
		params: JSON.parse('<?php echo addslashes($dataset);?>'),
	},
	methods: {	
		submit: function(){
			$.post('/merchant/goodscomment/edit', {params:vm.params}, function(data){
					if(data.ret===0){
							$.messager.show({
									title:'提示',
									msg:data.msg,
									timeout:3000,
									showType:'slide'
							});
							$('#<?php echo $uniqid;?>').form('clear');
							$("#goodscommentdlg").dialog('close');
							$("#goodscommentReload").datagrid('reload');
					}else{
							$.messager.alert('提示',data.msg,'warning');
					}
			});
		}
	}	
});
$('#goodscommentsubmit').click(function(data){
	goodscommentVm.submit();
})
</script>
